`timescale 1ns/1ps
module TimeCompare(Ttime, pass);
input [11:0] Ttime; //time is 12 bits
output pass;

wire [11:0] Ttime;
reg pass;

task compare;
  begin
  // if time is between 7am and 12pm
    if (0700<= Ttime<= 1200) begin
        pass = 1'b1;
      end
    else begin
        pass = 1'b0;
      end
  end
endtask;
endmodule;

